package com.derbysoft.dswitch.adapter.ihg.common.domain;


import javax.persistence.*;
import java.util.Date;

@Entity
public class ReservationItem extends ReservationItemDetail {

    @Id
    @Column(nullable = false, length = 50)
    private String ersp;

    @Column(nullable = false, length = 50, unique = true)
    private String confirmNumber;

    @Column(length = 50)
    private String cancelNumber;

    @Temporal(TemporalType.TIMESTAMP)
    private Date cancelTime;


    public String getConfirmNumber() {
        return confirmNumber;
    }

    public void setConfirmNumber(String confirmNumber) {
        this.confirmNumber = confirmNumber;
    }

    public String getErsp() {
        return ersp;
    }

    public void setErsp(String ersp) {
        this.ersp = ersp;
    }

    public String getCancelNumber() {
        return cancelNumber;
    }

    public void setCancelNumber(String cancelNumber) {
        this.cancelNumber = cancelNumber;
    }

    public Date getCancelTime() {
        return cancelTime;
    }

    public void setCancelTime(Date cancelTime) {
        this.cancelTime = cancelTime;
    }
}
